<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="theme-color" content="#2563eb">
    <title>豪华地产 - 预约看房</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        body {
            font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .btn-selected {
            background-color: rgba(37, 99, 235, 0.1);
            border-color: #2563eb;
            color: #2563eb;
        }
        .btn-primary {
            background-color: #2563eb;
            color: white;
        }
        .card-shadow {
            box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">
    <!-- 预约看房页面 -->
    <div class="page bg-white h-full overflow-y-auto pb-20">
        <!-- 顶部导航栏 -->
        <div class="bg-blue-600 text-white">
            <div class="p-4 flex justify-between items-center">
                <a href="index.html" class="text-white">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
                    </svg>
                </a>
                <h1 class="text-lg font-bold">预约看房</h1>
                <span class="w-5"></span>
            </div>

            <!-- 预约说明 -->
            <div class="px-4 pb-6 pt-2">
                <p class="text-white/80 text-sm">请填写以下信息，我们的销售顾问将会尽快与您联系</p>
            </div>
        </div>
        
        <!-- 预约表单 -->
        <div class="px-4 py-6 -mt-4">
            <div class="bg-white rounded-2xl card-shadow p-5">
                <div class="mb-5">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">您的姓名</label>
                    <input type="text" placeholder="请输入您的姓名" class="w-full p-3 border border-gray-200 rounded-lg outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500">
                </div>
                
                <div class="mb-5">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">联系电话</label>
                    <input type="tel" placeholder="请输入您的手机号" class="w-full p-3 border border-gray-200 rounded-lg outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500">
                </div>
                
                <div class="mb-5">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">选择楼盘</label>
                    <div class="relative">
                        <select class="w-full p-3 border border-gray-200 rounded-lg outline-none appearance-none bg-white text-gray-700 focus:border-blue-500 focus:ring-1 focus:ring-blue-500">
                            <option value="">请选择您想看的楼盘</option>
                            <option value="1">御景豪庭</option>
                            <option value="2">翡翠江湾</option>
                            <option value="3">中央公园</option>
                        </select>
                        <div class="absolute inset-y-0 right-0 flex items-center px-3 pointer-events-none">
                            <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
                            </svg>
                        </div>
                    </div>
                </div>
                
                <div class="mb-5">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">户型意向</label>
                    <div class="grid grid-cols-3 gap-3">
                        <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">两室</button>
                        <button class="py-2.5 bg-blue-600 text-white rounded-lg text-sm">三室</button>
                        <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">四室及以上</button>
                    </div>
                </div>
                
                <div class="mb-5">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">看房时间</label>
                    <div class="mb-3">
                        <label class="block text-xs text-gray-500 mb-2">日期</label>
                        <div class="grid grid-cols-4 gap-3">
                            <button class="py-2.5 border border-blue-500 text-blue-600 rounded-lg text-sm">今天</button>
                            <button class="py-2.5 bg-blue-600 text-white rounded-lg text-sm">明天</button>
                            <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">后天</button>
                            <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">自定义</button>
                        </div>
                    </div>
                    <div>
                        <label class="block text-xs text-gray-500 mb-2">时段</label>
                        <div class="grid grid-cols-4 gap-3">
                            <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">上午</button>
                            <button class="py-2.5 bg-blue-600 text-white rounded-lg text-sm">下午</button>
                            <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">晚上</button>
                            <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">待定</button>
                        </div>
                    </div>
                </div>
                
                <div class="mb-5">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">购房意向</label>
                    <div class="grid grid-cols-3 gap-3">
                        <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">刚需</button>
                        <button class="py-2.5 bg-blue-600 text-white rounded-lg text-sm">改善</button>
                        <button class="py-2.5 border border-gray-200 text-gray-600 rounded-lg text-sm hover:border-blue-500 hover:text-blue-600 transition-colors">投资</button>
                    </div>
                </div>
                
                <div class="mb-6">
                    <label class="block text-sm text-gray-700 mb-2 font-medium">备注信息</label>
                    <textarea placeholder="请输入其他需要说明的事项..." class="w-full p-3 border border-gray-200 rounded-lg h-24 outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500"></textarea>
                </div>
                
                <button id="submitButton" class="w-full bg-blue-600 text-white rounded-full py-3.5 font-medium text-base hover:bg-blue-700 transition-colors shadow-lg shadow-blue-600/20">
                    提交预约
                </button>
                <div class="text-xs text-center text-gray-500 mt-3">
                    提交后，置业顾问会尽快与您联系确认
                </div>
            </div>

            <!-- 顾问信息 -->
            <div class="mt-6">
                <h3 class="text-base font-bold mb-3">专属置业顾问</h3>
                <div class="flex items-center bg-white p-4 rounded-lg card-shadow">
                    <div class="w-12 h-12 rounded-full overflow-hidden mr-3">
                        <img src="https://randomuser.me/api/portraits/women/32.jpg" alt="置业顾问" class="w-full h-full object-cover">
                    </div>
                    <div class="flex-1">
                        <div class="font-medium">李小姐</div>
                        <div class="text-xs text-gray-500">资深置业顾问 | VIP客户专属服务</div>
                    </div>
                    <a href="tel:13800138000" class="bg-blue-50 text-blue-600 p-2 rounded-full">
                        <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
                        </svg>
                    </a>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 预约成功弹窗 -->
    <div class="fixed inset-0 bg-black/70 z-50 hidden" id="successModal">
        <div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-white rounded-2xl p-6 w-4/5 max-w-sm card-shadow">
            <div class="text-center">
                <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mx-auto mb-5">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
                    </svg>
                </div>
                <h3 class="text-xl font-bold mb-3">预约成功</h3>
                <p class="text-gray-600 mb-6">您的看房预约已提交成功，我们的置业顾问将会尽快与您联系确认详情</p>
                <button class="w-full bg-blue-600 text-white rounded-full py-3 font-medium text-base hover:bg-blue-700 transition-colors shadow-lg shadow-blue-600/20" onclick="this.closest('.fixed').classList.add('hidden')">
                    我知道了
                </button>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-20">
        <div class="grid grid-cols-5 h-16">
            <a href="index.html" class="flex flex-col items-center justify-center text-gray-400">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7m-7-7v14" />
                </svg>
                <span class="text-xs mt-1">首页</span>
            </a>
            <a href="property-list.html" class="flex flex-col items-center justify-center text-gray-400">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
                </svg>
                <span class="text-xs mt-1">楼盘列表</span>
            </a>
            <a href="floor-plan-list.html" class="flex flex-col items-center justify-center text-gray-400">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
                </svg>
                <span class="text-xs mt-1">户型列表</span>
            </a>
            <a href="appointment.html" class="flex flex-col items-center justify-center text-blue-600">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
                </svg>
                <span class="text-xs mt-1">预约看房</span>
            </a>
            <a href="my.html" class="flex flex-col items-center justify-center text-gray-400">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
                </svg>
                <span class="text-xs mt-1">我的</span>
            </a>
        </div>
    </div>

    <script>
        // 表单提交事件绑定
        document.addEventListener('DOMContentLoaded', function() {
            const submitButton = document.getElementById('submitButton');
            submitButton.addEventListener('click', function(e) {
                e.preventDefault();
                // 这里可以添加表单验证逻辑
                document.getElementById('successModal').classList.remove('hidden');
            });
        });
    </script>
</body>
</html> 